projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
579d81d
)
Create native window when requesting xid
author
Alexander Larsson
<alexl@redhat.com>
Wed, 3 Dec 2008 10:18:09 +0000
(11:18 +0100)
committer
Alexander Larsson
<alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:04 +0000
(10:14 +0200)
gdk/x11/gdkdrawable-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdrawable-x11.c
b/gdk/x11/gdkdrawable-x11.c
index 1c405687ad5734fcff31635e54cb84394ed0ebdf..8203f06df88f4e56c0667536209fc3f7b81656b7 100644
(file)
--- a/
gdk/x11/gdkdrawable-x11.c
+++ b/
gdk/x11/gdkdrawable-x11.c
@@
-871,10
+871,12
@@
gdk_x11_drawable_get_xid (GdkDrawable *drawable)
if (GDK_IS_WINDOW (drawable))
{
+ /* Try to ensure the window has a native window */
+ if (!GDK_WINDOW_IS_X11 (drawable))
+ gdk_window_set_has_native ((GdkWindow *)drawable, TRUE);
+
if (!GDK_WINDOW_IS_X11 (drawable))
{
- /* TODO: At this point we could convert a virtual window
- to a native one (unless its in an offscreen window) */
g_warning (G_STRLOC " drawable is not a native X11 window");
return None;
}